package method;

import node.Node;

public class toSameLength {
    public static void work(Node lonHead, Node shortHead,int maxLen,int minLen) {
        int diff=maxLen-minLen;
        for(int i=0;i<diff;i++) {
            Node newNode=new Node(0);
            newNode.prev = shortHead;
            newNode.next = shortHead.next;
            shortHead.next.prev = newNode;
            shortHead.next = newNode;
        }
        return;
    }
}
